domain_path = '/Oracle/Middleware/user_projects/domains/base_domain' 
nm_home = '/Oracle/Middleware/wlserver_10.3/common/nodemanager'
username = 'backupadmin'
password= 'weblogic1'
url='localhost:7001'

connect(username, password, url)    
nmEnroll(domain_path, nm_home)